<?php
/**
 * ============================================================================
 * @copyright China International Consulting. 中国国际咨询
 * @version:  v1.0
 * @website   http://www.chinacons.com
 * ---------------------------------------------
 * $Date: 2007.12.17
*/
  if( ! defined("IN_WEB"))
  {
	 header("location: http://$_SERVER[SERVER_NAME]/siteadmin/index.php");
  }

  $tpl->set_file("right", "work_cate.htm");
  $tpl->set_block("right", "NO_CATE", "no_cate");
  $tpl->set_block("right", "SON_CATE", "son_cate");

  //最底级了?
  if( mysql_num_rows( $result) < 1)
  {
	  $tpl->parse("no_cate", "NO_CATE");
  }
  elseif( ! $allow_son)
  {
	  $sub_num = get_owner_val("cate_id", "parent_id", $cID, $TBL_CATE, 1);  //子分类的个数
	  $tpl->parse("son_cate", "SON_CATE");
  }  

  $tpl->set_var(array( 
					   "CATE_ID" => $cate_id,
					   "CATE_CNAME" => stripslashes( $this_cate["zh_cate_title"]),
					   "EDIT_CATE" => $edit_cate,
					   "DEL_CATE" => $del_cate,
					   "HEBING_CATE" => $hebing_cate,
					   "SUB_NUM" => $sub_num,
					   "zh_cate_desc" => $this_cate['zh_cate_desc'],
					   "SON_URL" => "?cPath=$cID",
	                  ));

  $tpl->parse("Output", "right");
  $right_page = $tpl->get("Output");  
?>